
public class Motor {
	private String serialNumber;
	private int maximumHoursBeforeService;
	private int currentHours;
	
	public Motor(String inSerial, int maximumHours) {
		serialNumber = inSerial;
		maximumHoursBeforeService = maximumHours;
		currentHours = 0;
	}
	
	public String getSerialNumber() {
		return serialNumber;
	}
	
	public int getMaximumHoursBeforeService() {
		return maximumHoursBeforeService;
	}
	
	public int getCurrentHours() {
		return currentHours;
	}
	
	public void addHours(int moreHours) {
		currentHours += moreHours;
	}
}
